package com.example.studywords.sql;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.example.studywords.bean.WordTransRelationBean;

import java.util.List;

@Dao
public interface WordTransRelationDao {
    @Insert
    void insert(WordTransRelationBean wordTransRelationBean);
    @Query("SELECT * FROM word_trans_relation WHERE childWordId = :wordId")
    List<WordTransRelationBean> selectRelation(int wordId);
}
